<!-- 返回 -->
<script setup>
const router = useRouter();
const goBack = () => {
  router.back();
};
</script>

<template>
  <div class="page-header">
    <span @click="goBack"
      ><el-icon> <ArrowLeft /> </el-icon>返回</span
    >
  </div>
</template>

<style scoped lang="scss">
.page-header {
  background-color: #fff;
  border-bottom: 1px solid var(--use-color-line);
  padding-left: 16px;
  margin-top: -16px;
  border-radius: 8px 8px 0 0;

  .el-icon {
    margin-right: 10px;
  }

  span {
    cursor: pointer;
    height: 40px;
    display: flex;
    align-items: center;
  }
}
</style>
